home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / bin / conchftp < prev    next >
Text File  |  2009-10-05  |  580b  |  22 lines

  1. #! /usr/bin/python
  2.  
  3. # Twisted, the Framework of Your Internet
  4. # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
  5. # See LICENSE for details.
  6.  
  7.  
  8. ### Twisted Preamble
  9. # This makes sure that users don't have to set up their environment
  10. # specially in order to run these programs from bin/.
  11. import sys, os
  12. path = os.path.abspath(sys.argv[0])
  13. while os.path.dirname(path) != path:
  14.     if os.path.basename(path).startswith('Twisted'):
  15.         sys.path.insert(0, path)
  16.         break
  17.     path = os.path.dirname(path)
  18. ### end of preamble
  19.  
  20. from twisted.conch.scripts.cftp import run
  21. run()
  22.